package com.qunji.cpsdistribution.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sjq
 * @since 2020-07-23
 */
public class Wx extends Model<Wx> {

    private static final long serialVersionUID = 1L;

    /**
     * 微信id
     */
    @TableId(value = "wx_id", type = IdType.AUTO)
    private Long wxId;
    /**
     * 微信账号
     */
    private String wxNumber;
    /**
     * 微信小程序与该用户唯一识别id
     */
    private String openid;
    /**
     * 用户动态识别id
     */
    private String wxKey;
    /**
     * 创建时间
     */
    private Date createTime;


    public Long getWxId() {
        return wxId;
    }

    public void setWxId(Long wxId) {
        this.wxId = wxId;
    }

    public String getWxNumber() {
        return wxNumber;
    }

    public void setWxNumber(String wxNumber) {
        this.wxNumber = wxNumber;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getWxKey() {
        return wxKey;
    }

    public void setWxKey(String wxKey) {
        this.wxKey = wxKey;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.wxId;
    }

    @Override
    public String toString() {
        return "Wx{" +
        ", wxId=" + wxId +
        ", wxNumber=" + wxNumber +
        ", openid=" + openid +
        ", wxKey=" + wxKey +
        ", createTime=" + createTime +
        "}";
    }
}
